import request from '../request'

// 自我评价相关接口
// 查询自我评价列表
export const getSelfEvaluationList = () => {
	return request.get('/business/resumeSelfEvaluation/list')
}

// 获取自我评价详细信息
export const getSelfEvaluationDetail = (id) => {
	return request.get(`/business/resumeSelfEvaluation/${id}`)
}

// 新增自我评价
export const addSelfEvaluation = (params) => {
	return request.post('/business/resumeSelfEvaluation', params)
}

// 修改自我评价
export const updateSelfEvaluation = (params) => {
	return request.put('/business/resumeSelfEvaluation', params)
}

// 删除自我评价
export const deleteSelfEvaluation = (ids) => {
	return request.delete(`/business/resumeSelfEvaluation/${ids}`)
}

// 根据个人信息生成单个自我评价
export const generateSelfEvaluation = (id) => {
	return request.get(`/business/resumeSelfEvaluation/generateOne/${id}`)
} 